﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using LCA.Community.DAL.Model;
using Microsoft.Practices.Unity;
using LCA.Community.DAL.Interfaces;

namespace LCA.Community.Web.Models
{
    public class VolunteerViewModel
    {
        public VolunteerViewModel(string userID)
        {
            UserID = userID;
        }

        public string UserID { get; set; }
        public List<User> UsersHelped
        {
            get
            {
                return UsersRepository.GetHelpedPeopleByUser(UserID);
            }
        }

        public List<User> UsersHelping
        {
            get
            {
                return UsersRepository.GetVolunteersOfUser(UserID);
            }
        }

        [Dependency]
        public IUsersRepository UsersRepository { get; set; }
    }
}